package com.qding.park.common.core.exceptions.validator;

import com.qding.park.common.core.exceptions.BaseException;
import com.qding.park.common.core.exceptions.ExceptionMessage;
import com.qding.park.common.core.exceptions.ModularEnum;

public class RchlValidatorException extends BaseException{

public static enum TypeEnum {
		
		EXCEPTION_VALIDATOR(ModularEnum.MODULAR_VALIDATOR.getId() +".0001","参数验证--参数验证不通过");
		
		
		
		private String id;
		
		private String desc;
		
		private TypeEnum(String id,String desc){
			this.id=id;
			this.desc=desc;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		
	}
	
	private ExceptionMessage exceptionMessage;
	
	public RchlValidatorException(ExceptionMessage exceptionMessage, Exception ex) {
		super(null, ex);
		this.exceptionMessage=exceptionMessage;
		// TODO Auto-generated constructor stub
	}
	
	public RchlValidatorException(String id,Exception ex, ExceptionMessage exceptionMessage) {
		
		super(id,ex,null);
		this.exceptionMessage=exceptionMessage;
	}
	
	
	
	public ExceptionMessage getExceptionMessage() {
		return exceptionMessage;
	}

	public void setExceptionMessage(ExceptionMessage exceptionMessage) {
		this.exceptionMessage = exceptionMessage;
	}




	/**
	 * @Field @serialVersionUID : TODO(这里用一句话描述这个类的作用)
	 */
	private static final long serialVersionUID = 1L;

}
